package com.zerdoor.service;

import com.zerdoor.model.UserInfo;

import java.util.Map;

/**
 * Created by xiaoji on 2014/10/30.
 */
public interface RegisterService {
    /**
     * FunName:           addUserInfo
     * Description :      注册账户
     * @param map 用户信息（账号、密码、昵称、手机号或邮箱）
     * @return String：
     * @Author:       xiaoji
     * @Create Date: 2014-10-29
     */
    public Map<String, Object> addUserInfo(Map<String, Object> map);
    /**
     * FunName:           getUserInfoByUserName
     * Description :      账户唯一性验证
     * @param username 用户账号
     * @return String：
     * @Author:       xiaoji
     * @Create Date: 2014-10-29
     */
    public Integer getUserInfoByUserName(String username);

    /**
     * FunName:           getUserInfoByPhone
     * Description :      手机唯一性验证
     * @param phone 用户手机
     * @return String：
     * @Author:       xiaoji
     * @Create Date: 2014-11-28
     */
    public Integer getUserInfoByPhone(String phone);

    /**
     * FunName:           getUserInfoByEmail
     * Description :      邮箱唯一性验证
     * @param email 用户邮箱
     * @return String：
     * @Author:       xiaoji
     * @Create Date: 2014-11-28
     */
    public Integer getUserInfoByEmail(String email);

    /**
     * FunName:           getTuserByName
     * Description :      根据账户查找用户对象
     * @param name 用户账号
     * @return String：
     * @Author:       xiaoji
     * @Create Date: 2014-12-15
     */
    public UserInfo getTuserByName(String name);

    /**
     * 查询ACG注册条款
     * @return
     */
    String findACGRegisterProvision();
}
